home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3p / pthread_setspecific.z / pthread_setspecific
Encoding:
Text File  |  2002-10-03  |  3.0 KB  |  67 lines

  1.  
  2.  
  3.  
  4. pppptttthhhhrrrreeeeaaaadddd____sssseeeettttssssppppeeeecccciiiiffffiiiicccc((((3333PPPP))))                                pppptttthhhhrrrreeeeaaaadddd____sssseeeettttssssppppeeeecccciiiiffffiiiicccc((((3333PPPP))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      pthread_setspecific, pthread_getspecific - thread-specific data
  10.      management
  11.  
  12. CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<pppptttthhhhrrrreeeeaaaadddd....hhhh>>>>
  14.  
  15.      iiiinnnntttt pppptttthhhhrrrreeeeaaaadddd____sssseeeettttssssppppeeeecccciiiiffffiiiicccc((((pppptttthhhhrrrreeeeaaaadddd____kkkkeeeeyyyy____tttt kkkkeeeeyyyy,,,, ccccoooonnnnsssstttt vvvvooooiiiidddd ****vvvvaaaalllluuuueeee))));;;;
  16.      vvvvooooiiiidddd ****pppptttthhhhrrrreeeeaaaadddd____ggggeeeettttssssppppeeeecccciiiiffffiiiicccc((((pppptttthhhhrrrreeeeaaaadddd____kkkkeeeeyyyy____tttt kkkkeeeeyyyy))));;;;
  17.  
  18. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.      The _p_t_h_r_e_a_d__s_e_t_s_p_e_c_i_f_i_c() function associates a thread-specific _v_a_l_u_e
  20.      with _k_e_y.  Different threads may bind different values to the same key.
  21.  
  22.      The _p_t_h_r_e_a_d__g_e_t_s_p_e_c_i_f_i_c() function returns the calling thread's value
  23.      that is bound to the specified _k_e_y.
  24.  
  25.      The affect of calling either of these functions using a value for _k_e_y not
  26.      obtained from a _p_t_h_r_e_a_d__k_e_y__c_r_e_a_t_e() call or after _k_e_y has been deleted
  27.      with _p_t_h_r_e_a_d__k_e_y__d_e_l_e_t_e() is undefined.
  28.  
  29. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  30.      The _p_t_h_r_e_a_d__g_e_t_s_p_e_c_i_f_i_c() function returns the thread-specific value
  31.      associated with _k_e_y.  If no value is associated with _k_e_y, then NNNNUUUULLLLLLLL is
  32.      returned.
  33.  
  34.      On success, _p_t_h_r_e_a_d__s_e_t_s_p_e_c_i_f_i_c() returns zero; otherwise, an error
  35.      number is returned:
  36.  
  37.      [[[[EEEENNNNOOOOMMMMEEEEMMMM]]]]       Not enough memory is available to associate _v_a_l_u_e with
  38.                     _k_e_y.
  39.  
  40.      [[[[EEEEIIIINNNNVVVVAAAALLLL]]]]       The value specified by _k_e_y is invalid.
  41.  
  42. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  43.      pthread_key_create(3P), pthread_key_delete(3P).
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.